package com.ketan.chameleonmuseum.ui
import android.app.Application
import com.android.lib2.AppConfig
import com.ketan.chameleonmuseum.ui.base.AddUtil
import com.uxhuanche.mgr.KKActivityStack
import com.uxhuanche.recyceler.Config
/**
 * @author  ketan on 2020/8/22.
 */
class CMApplication : Application() {

    override fun onCreate() {
        super.onCreate()
        AppConfig.init(this, KKActivityStack.getStack())
        /*TODO init itemViewLocation*/
        Config.setItemViewLocation("todo")
        Thread.setDefaultUncaughtExceptionHandler { _, e ->
            e.printStackTrace()
            AddUtil.logMethodInfo()
        }
    }
}